package com.xiaoyu.client.loader.banner;

import android.annotation.SuppressLint;
import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.xiaoyu.client.R;
import com.xiaoyu.client.model.HomeBean;
import com.xiaoyu.client.model.StoreCreBanModel;
import com.youth.banner.loader.ImageLoader;


public class HomeGoodsImageLoader extends ImageLoader{
    @SuppressLint("Range")
    @Override
    public void displayImage(Context context, Object imgModel, ImageView imageView) {
        //Glide 加载图片简单用法
        HomeBean.DataBean.GoodslunboBean banModel = (HomeBean.DataBean.GoodslunboBean) imgModel;
        Glide.with(context).load(banModel.getLunboimg()).into(imageView);
    }
}
